package com.aistar.service.job;

import com.aistar.model.entity.EmployeeCollection;

import java.net.Inet4Address;

public interface IEmployeeCollectionService {
    int addRecruitment(EmployeeCollection employeeCollection, Integer id, Integer eid);

    //通过职位id获得数据
    EmployeeCollection searchByRecruitmentId(Integer rid, Integer eid);

    int searchCount(Integer rid, Integer eid);

    //根据职位id和求职者id删除数据
    int dropId(Integer rid, Integer eid);

    // 根据求职者id和职位id判断该求职者是否收藏该职位
    boolean judgeCollection(Integer employeeId,Integer recruitmentId);

    //将数据存入redis
    void saveToRedis(Integer id,Integer eid);

    //将数据存入mysql
    void saveToMySql(Integer id,Integer eid);

    //将数据从redis删除
    void delToRedis(Integer id,Integer eid);
}
